-- GENERATED SPELL FOR [Death Ravager] --


function spell0_17556(pUnit, Event) --@Enraging Bite,n/a--
pUnit:FullCastSpellOnTarget(30736,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17556', 580, 1)
end

function spell1_17556(pUnit, Event) --@Frenzy,Self--
pUnit:FullCastSpellOnTarget(3019,pUnit)
pUnit:RegisterEvent('Sorts_17556', 15000, 1)
end

function spell2_17556(pUnit, Event) --@Rend,n/a--
pUnit:FullCastSpellOnTarget(13443,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17556', 15000, 1)
end

function Sorts_17556(pUnit, Event)
local choix_sorts_17556 = math.random(0, 2)
if choix_sorts_17556 == 0 then
pUnit:RegisterEvent('spell0_17556', 1, 1)
end
if choix_sorts_17556 == 1 then
pUnit:RegisterEvent('spell1_17556', 1, 1)
end
if choix_sorts_17556 == 2 then
pUnit:RegisterEvent('spell2_17556', 1, 1)
end
end

function mob17556_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17556', math.random(1500, 3000), 1)
end

function mob17556_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17556_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17556_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17556, 1, 'mob17556_Action')
RegisterUnitEvent(17556, 2, 'mob17556_Leave')
RegisterUnitEvent(17556, 3, 'mob17556_Kill')
RegisterUnitEvent(17556, 4, 'mob17556_Die')
